package org.middleware.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.middleware.entity.system.SysDepartments;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author zhiqiangwu
* @description 针对表【sys_departments(部门表)】的数据库操作Mapper
* @createDate 2025-09-05 16:40:01
* @Entity generator.domain.SysDepartments
*/
@Mapper
@Repository
public interface SysDepartmentsMapper {

    public List<SysDepartments> getDepartmentByEnterpriseId(@Param("id") int id);

    public int create(SysDepartments departments);

    public int update(SysDepartments departments);

    public int delete(int id);

    public int deleteDepartmentWithChildren(@Param("list") List<Integer> list);

}




